package com.glacier.yuyuan.config;

import nz.net.ultraq.thymeleaf.layoutdialect.LayoutDialect;
import nz.net.ultraq.thymeleaf.layoutdialect.decorators.strategies.GroupingStrategy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * date 2022-11-10 19:04
 * Thymeleaf 模板设置
 *
 * @author glacier
 * @version 1.0
 */
@Configuration
public class ThymeleafConfig {

    /**
     * groups like elements together.
     *
     * @return
     */
    @Bean
    public LayoutDialect layoutDialect() {
        return new LayoutDialect(new GroupingStrategy());
    }
}
